<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>RTW Report - costotogo.c</title>
<script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
</head>
<body bgcolor="#eeeeee" text="#1122aa" onload="try {if (top) { if (top.rtwFileOnLoad) top.rtwFileOnLoad(window.document); else local_onload();}} catch(err) {};">
<p>
<table border="0" cellspacing="0" cellpadding="6" width="100%%" height="100%%"><tr><td width="100%%" valign="top" bgcolor="#ffffff">
<h4>File: <a href="../costotogo.c" target="rtwreport_document_frame" id="linkToText_plain">costotogo.c</a></h4>
<pre id="RTWcode">
<a name="1"><font color="#888888 "><i>    1   </i></font></a><font color="#117755"><i>/*</i></font>
<a name="2"><font color="#888888 "><i>    2   </i></font></a><font color="#117755"><I> * costotogo.c</i></font>
<a name="3"><font color="#888888 "><i>    3   </i></font></a><font color="#117755"><I> *</i></font>
<a name="4"><font color="#888888 "><i>    4   </i></font></a><font color="#117755"><I> * Code generation for function 'costotogo'</i></font>
<a name="5"><font color="#888888 "><i>    5   </i></font></a><font color="#117755"><I> *</i></font>
<a name="6"><font color="#888888 "><i>    6   </i></font></a><font color="#117755"><I> * C source code generated on: Wed Jun 11 17:43:10 2014</i></font>
<a name="7"><font color="#888888 "><i>    7   </i></font></a><font color="#117755"><I> *</i></font>
<a name="8"><font color="#888888 "><i>    8   </i></font></a><font color="#117755"><I> */</i></font>
<a name="9"><font color="#888888 "><i>    9   </i></font></a>
<a name="10"><font color="#888888 "><i>   10   </i></font></a><font color="#117755"><i>/* Include files */</i></font>
<a name="11"><font color="#888888 "><i>   11   </i></font></a><font color="#992211">#</font><font color="#992211"><b>include</b></font> <font color="#992211">&quot;rt_nonfinite.h&quot;</font>
<a name="12"><font color="#888888 "><i>   12   </i></font></a><font color="#992211">#</font><font color="#992211"><b>include</b></font> <font color="#992211">&quot;costotogo.h&quot;</font>
<a name="13"><font color="#888888 "><i>   13   </i></font></a>
<a name="14"><font color="#888888 "><i>   14   </i></font></a><font color="#117755"><i>/* Function Definitions */</i></font>
<a name="15"><font color="#888888 "><i>   15   </i></font></a><font color="#112266"><b>double</b></font> <a name="fcn_costotogo">costotogo</a>(<font color="#112266"><b>const</b></font> <font color="#112266"><b>double</b></font> x1[14])
<a name="16"><font color="#888888 "><i>   16   </i></font></a><b>{</b>
<a name="17"><font color="#888888 "><i>   17   </i></font></a>  <font color="#112266"><b>double</b></font> bv[14];
<a name="18"><font color="#888888 "><i>   18   </i></font></a>  <font color="#112266"><b>double</b></font> xp1[14];
<a name="19"><font color="#888888 "><i>   19   </i></font></a>  <font color="#112266"><b>int</b></font> k;
<a name="20"><font color="#888888 "><i>   20   </i></font></a>  <font color="#112266"><b>static</b></font> <font color="#112266"><b>const</b></font> <font color="#112266"><b>double</b></font> settings_gain[14] = <b>{</b> 0.0503347259274173,
<a name="21"><font color="#888888 "><i>   21   </i></font></a>    0.100746453646753, 0.318339540954382, 0.0937262730471322, 1.00000001331555,
<a name="22"><font color="#888888 "><i>   22   </i></font></a>    1.00000001232309, 0.0161954232020047, 0.048674631504831, 0.0489152114004245,
<a name="23"><font color="#888888 "><i>   23   </i></font></a>    0.16004296346025, 0.160077394139578, 9.53215194851665E-5,
<a name="24"><font color="#888888 "><i>   24   </i></font></a>    0.00852060285155151, 0.00883521305980648 <b>}</b>;
<a name="25"><font color="#888888 "><i>   25   </i></font></a>
<a name="26"><font color="#888888 "><i>   26   </i></font></a>  <font color="#112266"><b>static</b></font> <font color="#112266"><b>const</b></font> <font color="#112266"><b>double</b></font> settings_xoffset[14] = <b>{</b> -19.906, -9.88031, -3.1412,
<a name="27"><font color="#888888 "><i>   27   </i></font></a>    0.0582494635168442, -0.999999981442297, -0.999999994625933,
<a name="28"><font color="#888888 "><i>   28   </i></font></a>    -61.6672734555919, -20.4640483845939, -20.6576499191031, -9.38819215567605,
<a name="29"><font color="#888888 "><i>   29   </i></font></a>    -9.41107078716557, -1482.89654834504, -177.890385842624, -172.530246470464 <b>}</b>;
<a name="30"><font color="#888888 "><i>   30   </i></font></a>
<a name="31"><font color="#888888 "><i>   31   </i></font></a>  <font color="#112266"><b>double</b></font> av[14];
<a name="32"><font color="#888888 "><i>   32   </i></font></a>  <font color="#112266"><b>int</b></font> ib;
<a name="33"><font color="#888888 "><i>   33   </i></font></a>  <font color="#112266"><b>int</b></font> ia;
<a name="34"><font color="#888888 "><i>   34   </i></font></a>  <font color="#112266"><b>static</b></font> <font color="#112266"><b>const</b></font> <font color="#112266"><b>double</b></font> a[14] = <b>{</b> 1.9314044409184716, -1.0927069255360222,
<a name="35"><font color="#888888 "><i>   35   </i></font></a>    -1.6185083943202205, 0.052235474059689993, 0.55991308266831519,
<a name="36"><font color="#888888 "><i>   36   </i></font></a>    0.0039079879664824114, -0.75947815749028258, 0.024742286863746528,
<a name="37"><font color="#888888 "><i>   37   </i></font></a>    -0.41210820377094148, 0.29857072123268341, 1.6087253374469106,
<a name="38"><font color="#888888 "><i>   38   </i></font></a>    -0.72004436861200449, -0.80517686221416285, -2.4279541881361255 <b>}</b>;
<a name="39"><font color="#888888 "><i>   39   </i></font></a>
<a name="40"><font color="#888888 "><i>   40   </i></font></a>  <font color="#112266"><b>double</b></font> b_av[14];
<a name="41"><font color="#888888 "><i>   41   </i></font></a>  <font color="#112266"><b>double</b></font> y;
<a name="42"><font color="#888888 "><i>   42   </i></font></a>  <font color="#112266"><b>static</b></font> <font color="#112266"><b>const</b></font> <font color="#112266"><b>double</b></font> b_a[196] = <b>{</b> -0.063257069131583687, 3.6249581414113958,
<a name="43"><font color="#888888 "><i>   43   </i></font></a>    -0.007944349213196273, -1.3080658012004671, 0.60560082071912358,
<a name="44"><font color="#888888 "><i>   44   </i></font></a>    -0.8312288471502095, 0.14490444770004271, -0.86880044969651415,
<a name="45"><font color="#888888 "><i>   45   </i></font></a>    0.39084241896053107, 3.6159556967020725, -0.064537725959294925,
<a name="46"><font color="#888888 "><i>   46   </i></font></a>    0.094153596325859526, -0.14256362514167081, -0.31408494887943672,
<a name="47"><font color="#888888 "><i>   47   </i></font></a>    0.068208485774226765, 1.0583997670749414, -0.16191883433372942,
<a name="48"><font color="#888888 "><i>   48   </i></font></a>    -0.50665665399345816, -1.1365488974272924, -0.76386446169944866,
<a name="49"><font color="#888888 "><i>   49   </i></font></a>    0.13229895200772324, -0.31369700192208272, -1.7196858969498483,
<a name="50"><font color="#888888 "><i>   50   </i></font></a>    -0.68294369850447012, 0.065585767661644853, 0.075865974658648971,
<a name="51"><font color="#888888 "><i>   51   </i></font></a>    -0.044830399813308261, 0.98989355355437136, -0.2970952824096858,
<a name="52"><font color="#888888 "><i>   52   </i></font></a>    0.15999276551928709, -0.017037496929640534, -0.0028330578024241397,
<a name="53"><font color="#888888 "><i>   53   </i></font></a>    0.099094799808767772, 0.67616681820690094, -0.031667073130484613,
<a name="54"><font color="#888888 "><i>   54   </i></font></a>    -0.41117973179909884, 0.011945779231072836, 0.080757917983826782,
<a name="55"><font color="#888888 "><i>   55   </i></font></a>    -0.32827978452428513, -0.023654243282460553, 0.01406986756442089,
<a name="56"><font color="#888888 "><i>   56   </i></font></a>    -0.55886438088591039, 0.28185232126115894, 0.002061015734793102,
<a name="57"><font color="#888888 "><i>   57   </i></font></a>    0.2814671452517935, -0.77481693219478576, 0.2704360587358397,
<a name="58"><font color="#888888 "><i>   58   </i></font></a>    -0.082336955795199882, 0.004313029791064178, -0.36544741320580137,
<a name="59"><font color="#888888 "><i>   59   </i></font></a>    -0.07102795278024554, 0.033661382192243135, 0.11746554542627724,
<a name="60"><font color="#888888 "><i>   60   </i></font></a>    0.0570852676729263, 0.13329897910041436, -0.21870726520009748,
<a name="61"><font color="#888888 "><i>   61   </i></font></a>    0.039584227494056316, 0.35653490064488214, -0.27437246900503337,
<a name="62"><font color="#888888 "><i>   62   </i></font></a>    -0.19991205104994705, 0.19426910475684939, -0.10732365991776953,
<a name="63"><font color="#888888 "><i>   63   </i></font></a>    -0.12439156964224557, -0.11286832639064225, 0.042782590617823184,
<a name="64"><font color="#888888 "><i>   64   </i></font></a>    0.41679017216331593, -0.0084240332352075713, -0.080086166879665133,
<a name="65"><font color="#888888 "><i>   65   </i></font></a>    0.094084623796948916, 0.32645655251915989, -0.29323884410338913,
<a name="66"><font color="#888888 "><i>   66   </i></font></a>    0.16036351239020441, 0.49612045440187497, -0.40489211606264969,
<a name="67"><font color="#888888 "><i>   67   </i></font></a>    -0.36867328575333758, -0.32813420345927546, -0.25627354220286291,
<a name="68"><font color="#888888 "><i>   68   </i></font></a>    0.0337246608962615, -0.49382738327169018, -0.20559037623982498,
<a name="69"><font color="#888888 "><i>   69   </i></font></a>    -0.28796387434587245, -0.14709957578363425, 0.075860881993684043,
<a name="70"><font color="#888888 "><i>   70   </i></font></a>    -1.0718358724628465, -0.0990713739155948, -0.16649549441311312,
<a name="71"><font color="#888888 "><i>   71   </i></font></a>    0.014710822971095957, 0.36835602609054546, -0.032339836795863969,
<a name="72"><font color="#888888 "><i>   72   </i></font></a>    1.6809333636427746, -0.015429387384928505, -0.36137615852807592,
<a name="73"><font color="#888888 "><i>   73   </i></font></a>    0.049034649884208414, -0.19159169223400546, 0.052307387774242292,
<a name="74"><font color="#888888 "><i>   74   </i></font></a>    -0.00773364867517922, 0.014743292423716104, 0.28878614163892258,
<a name="75"><font color="#888888 "><i>   75   </i></font></a>    -0.048050583221277719, 3.1004582038873227, 0.032743048885811976,
<a name="76"><font color="#888888 "><i>   76   </i></font></a>    -1.114700370938551, 0.5577267407081633, 0.21975231771029616,
<a name="77"><font color="#888888 "><i>   77   </i></font></a>    -0.033931883425634975, -1.2514468024750656, 0.2663931243064267,
<a name="78"><font color="#888888 "><i>   78   </i></font></a>    2.7650805584947395, -0.0582562269671247, -0.026481920632007803,
<a name="79"><font color="#888888 "><i>   79   </i></font></a>    0.064442057768009167, 0.086843004132728649, 0.009259331325028413,
<a name="80"><font color="#888888 "><i>   80   </i></font></a>    1.8333147799013325, -0.16905128995448265, -0.60316058169429054,
<a name="81"><font color="#888888 "><i>   81   </i></font></a>    -1.84008799852262, -1.0048411325278044, 0.12863042688584231,
<a name="82"><font color="#888888 "><i>   82   </i></font></a>    -0.761880968066331, -2.53273359575866, -0.95955686346635527,
<a name="83"><font color="#888888 "><i>   83   </i></font></a>    0.063748054978813626, 0.069279046500210772, -0.053739836659387627,
<a name="84"><font color="#888888 "><i>   84   </i></font></a>    0.644019646422121, -0.0002456164174342781, 0.01732979014711216,
<a name="85"><font color="#888888 "><i>   85   </i></font></a>    0.0036821883812481761, 0.01056964338931247, 0.0019633083645704714,
<a name="86"><font color="#888888 "><i>   86   </i></font></a>    0.018584880004638607, 0.00028255160490637393, 0.016123507704927226,
<a name="87"><font color="#888888 "><i>   87   </i></font></a>    -0.026829098743664341, -0.012220801621079379, -0.00014635912670311527,
<a name="88"><font color="#888888 "><i>   88   </i></font></a>    9.0822791950915815E-6, 0.00019747031924765773, 0.012692143978236384,
<a name="89"><font color="#888888 "><i>   89   </i></font></a>    0.0013737375582127758, 0.0098378215337864561, 0.0044114167586565712,
<a name="90"><font color="#888888 "><i>   90   </i></font></a>    -0.011254369053416598, -0.0095098255110270171, 0.017801851627868188,
<a name="91"><font color="#888888 "><i>   91   </i></font></a>    0.00077232825251118673, 0.019773746430652942, -0.019066073965027,
<a name="92"><font color="#888888 "><i>   92   </i></font></a>    0.00066660168784692044, 0.0017277221397607359, 0.00023902977527167263,
<a name="93"><font color="#888888 "><i>   93   </i></font></a>    0.00041833061789840146, 0.0014126769447541081, -0.12039105452837999,
<a name="94"><font color="#888888 "><i>   94   </i></font></a>    -0.44286387489916262, 0.01000680446216796, 0.86580514368742989,
<a name="95"><font color="#888888 "><i>   95   </i></font></a>    0.17804880373842127, 0.23929462290101863, -0.071734827755437214,
<a name="96"><font color="#888888 "><i>   96   </i></font></a>    -0.35519317347418311, 0.23860144176361603, -0.14769091477598828,
<a name="97"><font color="#888888 "><i>   97   </i></font></a>    -0.11843694390944584, -0.037860209701408937, 0.00558200341255829,
<a name="98"><font color="#888888 "><i>   98   </i></font></a>    0.36860813718189273, -0.0013286046582568337, -0.041667131115250909,
<a name="99"><font color="#888888 "><i>   99   </i></font></a>    -0.00045905830905112484, -0.016644282155716016, -0.020389214439378332,
<a name="100"><font color="#888888 "><i>  100   </i></font></a>    -0.043579964390855923, -0.0033191806774490813, -0.016973355340293646,
<a name="101"><font color="#888888 "><i>  101   </i></font></a>    0.04251925538755276, 0.010236187331417053, -0.00034968321855928649,
<a name="102"><font color="#888888 "><i>  102   </i></font></a>    -0.0016018347062648809, 0.0010943721914468208, -0.027401040036820024,
<a name="103"><font color="#888888 "><i>  103   </i></font></a>    -0.0022264311192201052, -0.0039068307966603011, -0.0024876872839580005,
<a name="104"><font color="#888888 "><i>  104   </i></font></a>    0.026061219553689376, 0.0082509253014538576, -0.037373817710262908,
<a name="105"><font color="#888888 "><i>  105   </i></font></a>    -0.00405384513758634, -0.017941391549960384, 0.015949221294124703,
<a name="106"><font color="#888888 "><i>  106   </i></font></a>    -0.0035179926507316814, -0.0021552642738290584, -0.0020013168084900392,
<a name="107"><font color="#888888 "><i>  107   </i></font></a>    0.00099540835423030712, -0.010417893486878623 <b>}</b>;
<a name="108"><font color="#888888 "><i>  108   </i></font></a>
<a name="109"><font color="#888888 "><i>  109   </i></font></a>  <font color="#112266"><b>double</b></font> b[4];
<a name="110"><font color="#888888 "><i>  110   </i></font></a>  <font color="#112266"><b>static</b></font> <font color="#112266"><b>const</b></font> <font color="#112266"><b>double</b></font> c_a[4] = <b>{</b> 1.3579608899541953, 0.26654017891017218,
<a name="111"><font color="#888888 "><i>  111   </i></font></a>    -0.725421634171925, -2.8322991528795778 <b>}</b>;
<a name="112"><font color="#888888 "><i>  112   </i></font></a>
<a name="113"><font color="#888888 "><i>  113   </i></font></a>  <font color="#112266"><b>double</b></font> b_b[4];
<a name="114"><font color="#888888 "><i>  114   </i></font></a>  <font color="#112266"><b>static</b></font> <font color="#112266"><b>const</b></font> <font color="#112266"><b>double</b></font> d_a[56] = <b>{</b> 2.0362886303996786, 1.6523851959220284,
<a name="115"><font color="#888888 "><i>  115   </i></font></a>    -0.72329096919857316, -1.9805224779307746, 0.00055145216938164534,
<a name="116"><font color="#888888 "><i>  116   </i></font></a>    -0.30775000405101083, -2.3894192967896259, -5.3685783618006306,
<a name="117"><font color="#888888 "><i>  117   </i></font></a>    0.26522236204867694, 1.2207067730276622, 3.5828453729295662,
<a name="118"><font color="#888888 "><i>  118   </i></font></a>    1.2230361093964897, 0.0015726515849015263, -0.70561945392233216,
<a name="119"><font color="#888888 "><i>  119   </i></font></a>    -0.11337789633774378, 2.0623801748292947, 0.011599569943619766,
<a name="120"><font color="#888888 "><i>  120   </i></font></a>    -0.60076725115127028, 1.1367403707704682, 0.58770723601784669,
<a name="121"><font color="#888888 "><i>  121   </i></font></a>    0.004182943352637053, 0.09571753704495406, 0.21371573232360619,
<a name="122"><font color="#888888 "><i>  122   </i></font></a>    -0.74801304227089693, -1.1871087654590839, 0.44621512590713586,
<a name="123"><font color="#888888 "><i>  123   </i></font></a>    0.75062601234271986, 0.20046022031976635, -0.0071215576763787418,
<a name="124"><font color="#888888 "><i>  124   </i></font></a>    0.55196646705549046, 0.96959267589102072, -1.6481828391955353,
<a name="125"><font color="#888888 "><i>  125   </i></font></a>    -0.0087445549305949031, 0.50908515176042135, -1.2357783259236523,
<a name="126"><font color="#888888 "><i>  126   </i></font></a>    -5.6019584527492263, 0.0010888008974598471, -0.11218994282434275,
<a name="127"><font color="#888888 "><i>  127   </i></font></a>    -0.83723777326823123, 4.4634587443772649, -1.6411966651301029,
<a name="128"><font color="#888888 "><i>  128   </i></font></a>    0.15713795300867456, -0.0580530216836264, -1.4495331398823319,
<a name="129"><font color="#888888 "><i>  129   </i></font></a>    2.6765263862998365, -0.499696445263937, -1.5168626451214311,
<a name="130"><font color="#888888 "><i>  130   </i></font></a>    1.001235634845439, 0.72457627003177671, 0.93239658684530846,
<a name="131"><font color="#888888 "><i>  131   </i></font></a>    -0.01635383048216392, 2.8655894713209604, 0.028415183101462078,
<a name="132"><font color="#888888 "><i>  132   </i></font></a>    -0.48169090644926205, 1.1544436895135726, -0.38267451870212071 <b>}</b>;
<a name="133"><font color="#888888 "><i>  133   </i></font></a>
<a name="134"><font color="#888888 "><i>  134   </i></font></a>  <font color="#112266"><b>static</b></font> <font color="#112266"><b>const</b></font> <font color="#112266"><b>double</b></font> dv0[4] = <b>{</b> 5.5612628927474548, 0.09474257227032247,
<a name="135"><font color="#888888 "><i>  135   </i></font></a>    -0.028167106409981071, 1.771860387468587 <b>}</b>;
<a name="136"><font color="#888888 "><i>  136   </i></font></a>
<a name="137"><font color="#888888 "><i>  137   </i></font></a>  <font color="#117755"><i>/* COSTOTOGO neural network simulation function. */</i></font>
<a name="138"><font color="#888888 "><i>  138   </i></font></a>  <font color="#117755"><i>/*  */</i></font>
<a name="139"><font color="#888888 "><i>  139   </i></font></a>  <font color="#117755"><i>/*  Generated by Neural Network Toolbox function genFunction, 11-Jun-2014 17:34:46. */</i></font>
<a name="140"><font color="#888888 "><i>  140   </i></font></a>  <font color="#117755"><i>/*   */</i></font>
<a name="141"><font color="#888888 "><i>  141   </i></font></a>  <font color="#117755"><i>/*  [y1] = costotogo(x1) takes these arguments: */</i></font>
<a name="142"><font color="#888888 "><i>  142   </i></font></a>  <font color="#117755"><i>/*    x = 14xQ matrix, input #1 */</i></font>
<a name="143"><font color="#888888 "><i>  143   </i></font></a>  <font color="#117755"><i>/*  and returns: */</i></font>
<a name="144"><font color="#888888 "><i>  144   </i></font></a>  <font color="#117755"><i>/*    y = 1xQ matrix, output #1 */</i></font>
<a name="145"><font color="#888888 "><i>  145   </i></font></a>  <font color="#117755"><i>/*  where Q is the number of samples. */</i></font>
<a name="146"><font color="#888888 "><i>  146   </i></font></a>  <font color="#117755"><i>/*  ===== NEURAL NETWORK CONSTANTS ===== */</i></font>
<a name="147"><font color="#888888 "><i>  147   </i></font></a>  <font color="#117755"><i>/*  Input 1 */</i></font>
<a name="148"><font color="#888888 "><i>  148   </i></font></a>  <font color="#117755"><i>/*  Layer 1 */</i></font>
<a name="149"><font color="#888888 "><i>  149   </i></font></a>  <font color="#117755"><i>/*  Layer 2 */</i></font>
<a name="150"><font color="#888888 "><i>  150   </i></font></a>  <font color="#117755"><i>/*  Layer 3 */</i></font>
<a name="151"><font color="#888888 "><i>  151   </i></font></a>  <font color="#117755"><i>/*  Output 1 */</i></font>
<a name="152"><font color="#888888 "><i>  152   </i></font></a>  <font color="#117755"><i>/*  ===== SIMULATION ======== */</i></font>
<a name="153"><font color="#888888 "><i>  153   </i></font></a>  <font color="#117755"><i>/*  Dimensions */</i></font>
<a name="154"><font color="#888888 "><i>  154   </i></font></a>  <font color="#117755"><i>/*  samples */</i></font>
<a name="155"><font color="#888888 "><i>  155   </i></font></a>  <font color="#117755"><i>/*  Input 1 */</i></font>
<a name="156"><font color="#888888 "><i>  156   </i></font></a>  <font color="#117755"><i>/*  ===== MODULE FUNCTIONS ======== */</i></font>
<a name="157"><font color="#888888 "><i>  157   </i></font></a>  <font color="#117755"><i>/*  Map Minimum and Maximum Input Processing Function */</i></font>
<a name="158"><font color="#888888 "><i>  158   </i></font></a>  <font color="#112266"><b>for</b></font> (k = 0; k &lt; 14; k++) <b>{</b>
<a name="159"><font color="#888888 "><i>  159   </i></font></a>    bv[k] = settings_gain[k];
<a name="160"><font color="#888888 "><i>  160   </i></font></a>    xp1[k] = (x1[k] - settings_xoffset[k]) * settings_gain[k] + -1.0;
<a name="161"><font color="#888888 "><i>  161   </i></font></a>  <b>}</b>
<a name="162"><font color="#888888 "><i>  162   </i></font></a>
<a name="163"><font color="#888888 "><i>  163   </i></font></a>  <font color="#117755"><i>/*  Layer 1 */</i></font>
<a name="164"><font color="#888888 "><i>  164   </i></font></a>  ib = 0;
<a name="165"><font color="#888888 "><i>  165   </i></font></a>  ia = 0;
<a name="166"><font color="#888888 "><i>  166   </i></font></a>  <font color="#112266"><b>for</b></font> (k = 0; k &lt; 14; k++) <b>{</b>
<a name="167"><font color="#888888 "><i>  167   </i></font></a>    av[ib] = a[ia];
<a name="168"><font color="#888888 "><i>  168   </i></font></a>    ia++;
<a name="169"><font color="#888888 "><i>  169   </i></font></a>    ib++;
<a name="170"><font color="#888888 "><i>  170   </i></font></a>  <b>}</b>
<a name="171"><font color="#888888 "><i>  171   </i></font></a>
<a name="172"><font color="#888888 "><i>  172   </i></font></a>  <font color="#117755"><i>/*  Sigmoid Symmetric Transfer Function */</i></font>
<a name="173"><font color="#888888 "><i>  173   </i></font></a>  <font color="#112266"><b>for</b></font> (k = 0; k &lt; 14; k++) <b>{</b>
<a name="174"><font color="#888888 "><i>  174   </i></font></a>    y = 0.0;
<a name="175"><font color="#888888 "><i>  175   </i></font></a>    <font color="#112266"><b>for</b></font> (ib = 0; ib &lt; 14; ib++) <b>{</b>
<a name="176"><font color="#888888 "><i>  176   </i></font></a>      y += b_a[k + 14 * ib] * xp1[ib];
<a name="177"><font color="#888888 "><i>  177   </i></font></a>    <b>}</b>
<a name="178"><font color="#888888 "><i>  178   </i></font></a>
<a name="179"><font color="#888888 "><i>  179   </i></font></a>    b_av[k] = av[k] + y;
<a name="180"><font color="#888888 "><i>  180   </i></font></a>  <b>}</b>
<a name="181"><font color="#888888 "><i>  181   </i></font></a>
<a name="182"><font color="#888888 "><i>  182   </i></font></a>  <font color="#112266"><b>for</b></font> (k = 0; k &lt; 14; k++) <b>{</b>
<a name="183"><font color="#888888 "><i>  183   </i></font></a>    bv[k] = exp(-2.0 * b_av[k]);
<a name="184"><font color="#888888 "><i>  184   </i></font></a>  <b>}</b>
<a name="185"><font color="#888888 "><i>  185   </i></font></a>
<a name="186"><font color="#888888 "><i>  186   </i></font></a>  <font color="#117755"><i>/*  Layer 2 */</i></font>
<a name="187"><font color="#888888 "><i>  187   </i></font></a>  ib = 0;
<a name="188"><font color="#888888 "><i>  188   </i></font></a>  ia = 0;
<a name="189"><font color="#888888 "><i>  189   </i></font></a>  <font color="#112266"><b>for</b></font> (k = 0; k &lt; 4; k++) <b>{</b>
<a name="190"><font color="#888888 "><i>  190   </i></font></a>    b[ib] = c_a[ia];
<a name="191"><font color="#888888 "><i>  191   </i></font></a>    ia++;
<a name="192"><font color="#888888 "><i>  192   </i></font></a>    ib++;
<a name="193"><font color="#888888 "><i>  193   </i></font></a>  <b>}</b>
<a name="194"><font color="#888888 "><i>  194   </i></font></a>
<a name="195"><font color="#888888 "><i>  195   </i></font></a>  <font color="#117755"><i>/*  Sigmoid Symmetric Transfer Function */</i></font>
<a name="196"><font color="#888888 "><i>  196   </i></font></a>  <font color="#112266"><b>for</b></font> (k = 0; k &lt; 14; k++) <b>{</b>
<a name="197"><font color="#888888 "><i>  197   </i></font></a>    xp1[k] = 2.0 / (1.0 + bv[k]) - 1.0;
<a name="198"><font color="#888888 "><i>  198   </i></font></a>  <b>}</b>
<a name="199"><font color="#888888 "><i>  199   </i></font></a>
<a name="200"><font color="#888888 "><i>  200   </i></font></a>  <font color="#112266"><b>for</b></font> (k = 0; k &lt; 4; k++) <b>{</b>
<a name="201"><font color="#888888 "><i>  201   </i></font></a>    y = 0.0;
<a name="202"><font color="#888888 "><i>  202   </i></font></a>    <font color="#112266"><b>for</b></font> (ib = 0; ib &lt; 14; ib++) <b>{</b>
<a name="203"><font color="#888888 "><i>  203   </i></font></a>      y += d_a[k + (ib &lt;&lt; 2)] * xp1[ib];
<a name="204"><font color="#888888 "><i>  204   </i></font></a>    <b>}</b>
<a name="205"><font color="#888888 "><i>  205   </i></font></a>
<a name="206"><font color="#888888 "><i>  206   </i></font></a>    b_b[k] = b[k] + y;
<a name="207"><font color="#888888 "><i>  207   </i></font></a>  <b>}</b>
<a name="208"><font color="#888888 "><i>  208   </i></font></a>
<a name="209"><font color="#888888 "><i>  209   </i></font></a>  <font color="#117755"><i>/*  Layer 3 */</i></font>
<a name="210"><font color="#888888 "><i>  210   </i></font></a>  y = 0.0;
<a name="211"><font color="#888888 "><i>  211   </i></font></a>  <font color="#112266"><b>for</b></font> (k = 0; k &lt; 4; k++) <b>{</b>
<a name="212"><font color="#888888 "><i>  212   </i></font></a>    y += dv0[k] * (2.0 / (1.0 + exp(-2.0 * b_b[k])) - 1.0);
<a name="213"><font color="#888888 "><i>  213   </i></font></a>  <b>}</b>
<a name="214"><font color="#888888 "><i>  214   </i></font></a>
<a name="215"><font color="#888888 "><i>  215   </i></font></a>  <font color="#117755"><i>/*  Output 1 */</i></font>
<a name="216"><font color="#888888 "><i>  216   </i></font></a>  <font color="#117755"><i>/*  Map Minimum and Maximum Output Reverse-Processing Function */</i></font>
<a name="217"><font color="#888888 "><i>  217   </i></font></a>  <font color="#112266"><b>return</b></font> ((0.77747122921454248 + y) - -1.0) / 0.0975588293155111 + 0.098549;
<a name="218"><font color="#888888 "><i>  218   </i></font></a><b>}</b>
<a name="219"><font color="#888888 "><i>  219   </i></font></a>
<a name="220"><font color="#888888 "><i>  220   </i></font></a><font color="#117755"><i>/* End of code generation (costotogo.c) */</i></font>
<a name="221"><font color="#888888 "><i>  221   </i></font></a></pre>
</td></tr></table>
</p>
</body>
</html>